@extends('web.layouts.app')

@section('title', trans('seo.other_title').$query_article->title)
@section('keywords', trans('seo.default_articles.keywords'))
@section('description', trans('seo.default_articles.description'))

@section('styles')
<link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/article.css')}}">
@endsection

@section('content')
    <div class="article-wrap clearfix">
        <!--bread nav-->
        <div class="bread-nav">
            <a href="{{ action('ArticleController@index') }}">首页</a><i>&gt;</i><a href="#">新手引导</a><i>&gt;</i><span>{{ str_limit($query_article->title,25) }}</span>
        </div>
        <!--bread nav /-->
        <!--article container-->
        <div class="article-container">
            <!--menu-->
            <div class="article-side">
                <ul>
                    @foreach($articles as $article)
                        <li {{ $article->title==$query_article->title?"class=active":"" }}><a href="{{ action("ArticleController@xszc",[$article->id])}}">{{ $article->title }}</a></li>
                    @endforeach
                </ul>
            </div>
            <!--menu /-->
            <div class="article-main help-center-content">
                <div class="help-center-title">{{ str_limit($query_article->title,50) }}</div>
                <div class="help-center-info" id="article-content">
                    {!! $query_article->content !!}
                </div>
            </div>
        </div>
        <!--article container /-->
    </div>
@endsection

@section('scripts')
@endsection
